package com.rf.HelloSpringBoot.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.rf.HelloSpringBoot.properties.VisitorProperties;

/**
 * 
 * @author linzhengchun
 *
 * 2017年7月19日 下午11:10:31
 */
@RestController
public class HelloImproveController {
	
	@Autowired
	private VisitorProperties visitor;
	
	@RequestMapping(value = "/helloImprove", method = RequestMethod.GET)
	public String sayHello () {
		return "Hello, Spring Boot~</br>" + this.visitor.getName();
	}
}
